package com.aiwhose.aiwhosewechatgroup.service.impl;

import com.aiwhose.aiwhosecore.bean.wechatgroup.WxGroupQr;
import com.mybatisflex.core.query.QueryWrapper;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.aiwhose.aiwhosewechatgroup.mapper.WxGroupQrMapper;
import com.aiwhose.aiwhosewechatgroup.service.WxGroupQrService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 存储群二维码信息，包括图片、过期时间、扫描次数等 服务层实现。
 *
 * @author 田国刚
 * @since 1.0.1
 */
@Service
public class WxGroupQrServiceImpl extends ServiceImpl<WxGroupQrMapper, WxGroupQr> implements WxGroupQrService {
@Resource
private WxGroupQrMapper wxGroupQrMapper;

    @Override
    public List<WxGroupQr> getGroupQcList(WxGroupQr wxGroupQr) {
        QueryWrapper wrapper = new QueryWrapper ();
        wrapper.eq(WxGroupQr::getTypeId, wxGroupQr.getTypeId());
        List<WxGroupQr> list = wxGroupQrMapper.selectListByQuery(wrapper);
        return list;
    }
}
